<div class="tableform widgetconfig">
<div class="division">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr> 
        <th><{t app="b2c"}>显示成功发贷<{/t}></th>
        <td><{input name="rowNum" value=$setting.rowNum|default:20 size=5}><{t app="b2c"}> 条<{/t}> 
        </td>
      </tr>
      <tr> 
        <th><{t app="b2c"}>显示小图标<{/t}></th>
        <td>
          <div id="showPic"></div>
          <select stype="arrow" name="smallPic" id="smallPic" value="<{$setting.smallPic}>" onChange="choosePic()">
            <{if $setting.smallPic == 'arrow_1.gif'}>
            <option value="arrow_1.gif" selected=selected>箭头1</option>
            <{else}>
            <option value="arrow_1.gif" >箭头1</option>
            <{/if}>
            <{if $setting.smallPic == 'arrow_2.gif'}>
            <option value="arrow_2.gif" selected=selected>箭头2</option>
            <{else}>
            <option value="arrow_2.gif" >箭头2</option>
            <{/if}>
            <{if $setting.smallPic == 'arrow_3.gif'}>
            <option value="arrow_3.gif" selected=selected>箭头3</option>
            <{else}>
            <option value="arrow_3.gif" >箭头3</option>
            <{/if}>
            <{if $setting.smallPic == 'arrow_4.gif'}>
            <option value="arrow_4.gif" selected=selected>箭头4</option>
            <{else}>
            <option value="arrow_4.gif" >箭头4</option>
            <{/if}>
            <{if $setting.smallPic == 'arrow_5.gif'}>
            <option value="arrow_5.gif" selected=selected>箭头5</option>
            <{else}>
            <option value="arrow_5.gif" >箭头5</option>
            <{/if}>
            <{if $setting.smallPic == '6'}>
            <option value="6" selected=selected>自定义</option>
            <{else}>
            <option value="6">自定义</option>
            <{/if}>
          </select>
          <div id="pic_add" style="display: none">
            <{t app="b2c"}> 图片地址：<{/t}><{input name="picaddress" value=$setting.picaddress}>
          </div>
        </td>
      </tr>
      <tr> 
        <th><{t app="b2c"}>滚动速度<{/t}></th>
        <td><select name="roll_speed"><option value=200 <{if $setting.roll_speed==200}>selected<{/if}>><{t app="b2c"}>快<{/t}></option><option value=500 <{if $setting.roll_speed==500}>selected<{/if}>><{t app="b2c"}>普通<{/t}></option><option value=800 <{if $setting.roll_speed==800}>selected<{/if}>><{t app="b2c"}>慢<{/t}></option>
          </select></td>
      </tr>
      <tr>
        <th><{t app="b2c"}>高度<{/t}></th>
        <td><{input name="height" value=$setting.height|default:40 size=5 required="true" type="digits"}></td>
      </tr>
     <tr>
      <th><{t app="b2c"}>每次滚动条数<{/t}></th>
      <td>
      <input type="text" name="steps" value="<{$setting.steps|default:1}>"  />
    </tr>
   </table>
</div>
</div>
<script>
choosePic=function(){
  var vol=$('smallPic').value;
  $('pic_add').style.display="none";
  switch(vol){
    case '':
    $('showPic').innerHTML='';
    break;
    case '6':
    $('pic_add').style.display="";
    $('showPic').innerHTML="";
    break;
    default:
    	$('showPic').innerHTML="<img src='<{$setting.res_url}>/icons/"+vol+"'>";
    //$('showPic').innerHTML="<img src='../statics/icons/"+vol+"'>";
    break;
  }
}
choosePic();</script>